//
//  DataModel.h
//  XiaoHongShu
//
//  Created by Jason on 2022/6/18.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

#pragma mark - ImagesModel(笔记图片信息)
@interface ImagesModel : BaseModel
//图片ID
@property (nonatomic, assign) NSInteger ID;
//笔记ID
@property (nonatomic, assign) NSInteger noteId;
//图片高
@property (nonatomic, assign) NSInteger height;
//图片宽
@property (nonatomic, assign) NSInteger width;
//图片地址
@property (nonatomic, copy) NSString *url;
@end

#pragma mark - VedioModel(笔记视频信息)
@interface VedioModel : BaseModel
//视频ID
@property (nonatomic, assign) NSInteger ID;
//视频高
@property (nonatomic, assign) NSInteger height;
//视频宽
@property (nonatomic, assign) NSInteger width;
//url
@property (nonatomic, copy) NSString *url;
//视频时长
@property (nonatomic, assign) NSInteger duration;
//预加载大小
@property (nonatomic, assign) NSInteger preloadSize;
//帧率
@property (nonatomic, assign) NSInteger frameTs;
//播放次数
@property (nonatomic, assign) NSInteger playedCount;
//第一帧图片地址
@property (nonatomic, copy) NSString *firstFrame;
//缩略图
@property (nonatomic, copy) NSString *thumbnail;
//所有缩略图
@property (nonatomic, copy) NSString *thumbnailDim;
@end


@interface HashTagsModel : BaseModel
//话题ID
@property (nonatomic, assign) NSInteger topicId;
//话题名称
@property (nonatomic, copy) NSString *topicName;
@end

@interface AtsModel : BaseModel
//用户id
@property (nonatomic, assign) NSInteger userId;
//用户名称
@property (nonatomic, copy) NSString *userName;

@end

#pragma mark - MainDataModel
@interface MainDataModel : BaseModel
@property (nonatomic, strong) NSArray<ImagesModel *> *images;
@property (nonatomic, strong) VedioModel *video;
@property (nonatomic, strong) NSArray<HashTagsModel *> *hashTags;
@property (nonatomic, strong) NSArray<AtsModel *> *ats;


//笔记id
@property (nonatomic, assign) NSInteger ID;
@property (nonatomic, copy) NSString *remoteId;
//笔记名称
@property (nonatomic, copy) NSString *name;
//笔记描述
@property (nonatomic, copy) NSString *textDescription;
//笔记类型，图文：normal、视频：video
@property (nonatomic, copy) NSString *type;
//用户id
@property (nonatomic, assign) NSInteger userId;
//用户名称
@property (nonatomic, copy) NSString *userName;
//用户头像
@property (nonatomic, copy) NSString *userImage;
//是否广告，1：是、0：否
@property (nonatomic, assign) NSInteger isAds;
//是否可见，1：是、0：否
@property (nonatomic, assign) NSInteger isVisible;
//是否已经喜欢
@property (nonatomic, assign) BOOL inLike;
//是否已经收藏
@property (nonatomic, assign) BOOL inCollect;

//查看数量
@property (nonatomic, assign) NSInteger viewCount;
//喜欢数量
@property (nonatomic, assign) NSInteger likeCount;
//收藏数量
@property (nonatomic, assign) NSInteger collectCount;
//评论数量
@property (nonatomic, assign) NSInteger commentCount;
//最后编辑日期
@property (nonatomic, copy) NSString *lastModifiedAt;
//创建日期
@property (nonatomic, copy) NSString *createdAt;

//喜欢按钮的图片
@property (nonatomic, copy) NSString *likeBtnImageName;

//收藏按钮的图片
@property (nonatomic, copy) NSString *collectBtnImageName;

//是否已经关注
@property (nonatomic, assign) BOOL hadAttention;




@end

NS_ASSUME_NONNULL_END
